package com.yuanfengerp.retailback.dao;


import com.yuanfengerp.retailback.model.RetailBackBoundOrder;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface IRetailBackDao {
    //新增退货单
    int insertBackOrder(RetailBackBoundOrder retailBackBoundOrder);
    //审核通过退货单
    int updateBackOrderAgree(String retailReturnOrderNumber);
    //审核拒绝退货单
    int updateBackOrderRefuse(String retailReturnOrderNumber);
    //通过单据号 会员 仓库 操作人 操作日期 审核人 审核日期 状态 销售员 零售出库单号 结算状态 查询所有退货单
    List<RetailBackBoundOrder> selectAllBackOrder(Map<String, Object> condition);

    //通过ID查看单条退货单
    RetailBackBoundOrder selectBackOrder(String retailReturnOrderNumber);
    //通过ID查看单条退货单状态
    int selectBackOrderStatus(String retailReturnOrderNumber);
}
